<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
    <style>
        /* .right{
            float:left;
            width: 100px;
            border: 3px solid palegoldenrod;
            padding: 10px;
        } */
    </style>
</head>

<body>
    <div id="app" class="right">
       
        <template id="btn">
            <div>
            <button >🔪</button>
            <button >🐻</button>
            <button >🐱</button>
            <button >🐖</button>
            <button >🐕</button>
            <button >🦒</button>
            <button >👮‍♀️</button>
            <button >👯‍♀️</button>
            <button >👩‍💻</button>
            <button >👨‍💻</button>
            <button >🐵</button>
            <button >🐱‍🏍</button>

            
            </div>
        </template>
    </div>
</body>

</html>

<script>
    //ctrl+/生成單行注釋

    const btn={
        template:"#btn",
        data(){
            return{
                count:100
            }
        },
        methods:{
            //定義纍加方法
            add(){
                //實現纍加
                this.count =this.count+100
            }
        }
    }

    new Vue({
        el: '#app',
        components:{
            btn
        }
    })
</script>